package io.gitee.yxsnake.framework.resource.api.domain;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author snake
 * @description
 * @since 2024/11/17 14:12
 */
@Data
public class RemoteMessage implements Serializable {

    /**
     * session主键 一般为用户id
     */
    @NotNull(message = "user.id.not.null")
    private Long sessionKey;
    /**
     * 消息文本
     */
    @NotBlank(message = "message.content.not.null")
    private String message;
}
